import org.junit.Test;

/**
 * 测试有序map
 */
public class MapSorted {
    /**
     * LinkedHashMap 按插入进行时间排序；测试更新对其的影响
     */
    @Test
    public void test() {
        float f = 10000033.1f;
        double d = 10000033.1d;
        System.out.println(f);
        System.out.println(d);
        f = 19999989.1f;
        System.out.println(f);
        f = 0.0000033331f;
        System.out.println(f);
        f = 12345.1234f;
        System.out.println(f);
    }


    private static double safeParseDouble(CharSequence charSequence) {
        double result = 0.0f;
        try {
            result = Double.parseDouble(charSequence.toString());
        } catch (Exception ignore) { /* no-op */ }
        return result;
    }


    private static float safeParseFloat(CharSequence charSequence) {
        float result = 0.0f;
        try {
            result = Float.parseFloat(charSequence.toString());
        } catch (Exception ignore) { /* no-op */ }
        return result;
    }



}
